/**
 * 接口列表文件
 */
export default {

    /** 轮播图 ↓ **/
    home: {
        url: 'home/advertise/list',
        auth: false,
        method: 'GET'
    },
    /** 分类对象 ↓ **/
    category: {
        topic: {
            url: 'topic/getAll',
            auth: false,
            method: 'get'
            // desc: '分类主题',
        },
        tree: {
            url: 'category/tree',
            auth: false,
            method: 'get'
            // desc: '标签对象',
        },
        list: {
            url: 'category/listAll',
            auth: false,
            method: 'get'
            // desc: '轮播图底下导航菜单',
        }
    },
    /** 用户管理 ↓ **/
    user: {
        info: {
            url: 'user/info',
            auth: false,
            method: 'get'
            // desc: '用户信息',
        },
        login: {
            url: 'user/login',
            auth: false,
            method: 'POST'
            // desc: '用户名登录',
        },
        mobile: {
            url: 'user/login/mobile',
            auth: false,
            method: 'POST'
            // desc: '验证码登录',
        },
        logout: {
            url: 'user/logout',
            auth: false,
            method: 'POST'
            // desc: '登出',
        },
        /** 微信小程序登录 ↓ **/
        wxMiniProgramLogin: {
            url: 'wx/login',
            auth: false,
            method: 'POST',
            // desc: '微信小程序登录',
        },
        verified: {
            url: 'user/verified',
            auth: false,
            method: 'POST',
            // desc: '实名认证',
        }
    },
    /** 联系人管理 ↓ **/
    contact: {
        list: {
            url: 'user/contact/list',
            auth: false,
            method: 'GET'
            // desc: '获取联系人',
        },
        add: {
            url: 'user/contact/add',
            auth: false,
            method: 'POST'
            // desc: '添加联系人',
        },
        update: {
            url: 'user/contact/update',
            auth: false,
            method: 'POST'
            // desc: '修改联系人',
        },
        del: {
            url: 'user/contact/delete',
            auth: false,
            method: 'POST'
            // desc: '删除联系人',
        },
    },
    /** 收藏 ↓ **/
    favorite: {
        list: {
            url: 'favorite/list',
            auth: false,
            method: 'GET'
            // desc: '收藏列表',
        },
        del: {
            url: 'favorite/delete',
            auth: false,
            method: 'POST'
            // desc: '删除收藏',
        },
    },
    /** 订单状态 ↓ **/
    order: {
        payCancle: {
            url: 'order/cancle',
            auth: false,
            method: 'POST'
        },
        page: {
            url: 'order/page',
            auth: false,
            method: 'GET'
            // desc: '订单列表',
        },
        detail: {
            url: 'order/detail',
            auth: false,
            method: 'GET'
            // desc: '订单详情',
        },
        create: {
            url: 'order/create',
            auth: false,
            method: 'POST'
            // desc: '创建订单',
        },
        ticket: {
            url: 'order/create/ticket',
            auth: false,
            method: 'POST'
            // desc: '创建门票订单',
        },
        invoic: {
            url: 'order/invoic',
            auth: false,
            method: 'GET'
            // desc: '开电子发票',
        },
        receipt: {
            url: 'order/getReceipt',
            auth: false,
            method: 'GET'
            // desc: '电子发票结果',
        },
        refund: {
            url: 'order/ticket/refund',
            auth: false,
            method: 'POST'
            // desc: '退票',
        },
        refundPay: {
            url: 'order/refund',
            auth: false,
            method: 'POST'
        },
        cancle: {
            url: 'order/ticket/cancle',
            auth: false,
            method: 'POST'
            // desc: '取消门票订单',
        }
    },
    /** 购物车 ↓ **/
    cart: {
        index: {
            url: 'cart/list',
            auth: false,
            method: 'GET'
            // desc: '购物车列表',
        },
        add: {
            url: 'cart/add',
            auth: false,
            method: 'POST'
        },
        upD: {
            url: 'cart/update',
            auth: false,
            method: 'POST'
        },
        clear: {
            url: 'cart/clear',
            auth: false,
            method: 'POST'
        }
    },
    /** 短信登录 ↓ **/
    sms: {
        url: 'sms/send',
        auth: false,
        method: 'GET'
        // desc: '发送短信',
    },
    /** 紧急求助 ↓ **/
    alarm: {
        url: 'alarm/one',
        auth: false,
        method: 'POST'
        // desc: '紧急求助',
    },
    /** 反馈意见 ↓ **/
    feedback: {
        url: 'feedback/add',
        auth: false,
        method: 'POST'
    },
    /** 上传图片 ↓ **/
    uploadImg: {
        url: 'upload/image',
        auth: false,
        method: 'upload'
    },
    /** 通告 ↓ **/
    notice: {
        url: 'notice/list',
        auth: false,
        method: 'GET'
    },
    /** 全局搜索 ↓ **/
    search: {
        url: 'good/search/home',
        auth: false,
        method: 'GET'
    },
    /** 停车 ↓ **/
    park: {
        info: {
            url: 'park/info',
            auth: false,
            method: 'GET'
        },
        vehicle: {
            url: 'park/getVehicleRoute',
            auth: false,
            method: 'GET'
        },
        open: {
            url: 'park/controlgate',
            auth: false,
            method: 'POST',
            // desc: '停车免费开闸',
        },
    },
    /** 获取优惠券 ↓ **/
    coupon: {
        list: {
            url: 'coupon/list',
            auth: false,
            method: 'GET',
            // desc: '获取会优惠券',
        },
        all: {
            url: 'coupon/all/list',
            auth: false,
            method: 'GET',
            // desc: '获取未领取优惠券列表',
        },
        ex: {
            url: 'coupon/exchange',
            auth: false,
            method: 'POST',
            // desc: '领取优惠券',
        },
        exList: {
            url: 'coupon/exchange/list',
            auth: false,
            method: 'GET',
            // desc: '领取优惠券',
        },
        code: {
            url: 'qrcode/get',
            auth: false,
            method: 'GET',
            // desc: '获取优惠券二维码',
        }
    },
    /** 积分明细 ↓ **/
    integral: {
        url: 'integral/detail/list',
        auth: false,
        method: 'GET'
    },
    /** 钱包明细 ↓ **/
    platformserial: {
        url: 'platformserial/page',
        auth: false,
        method: 'GET'
    },
    /** 租借 ↓ **/
    lease: {
        create: {
            url: 'lease/create',
            auth: false,
            method: 'POST',
            // desc: '租借记录',
        },
        page: {
            url: 'lease/page',
            auth: false,
            method: 'GET',
            // desc: '记录列表',
        },
        retu: {
            url: 'return/create',
            auth: false,
            method: 'POST',
            // desc: '归还记录',
        },
        code: {
            url: 'lease/qrcode',
            auth: false,
            method: 'GET',
            // desc: '生成收款码',
        },
        pay: {
            url: 'lease/query/payresult',
            auth: false,
            method: 'GET',
            // desc: '查询支付结果',
        }
    },
    /** 地址管理 ↓ **/
    ship: {
        add:{
            url: 'ship/address/add',
            auth: false,
            method: 'POST',
            // desc: '添加地址',
        },
        edit:{
            url: 'ship/address/update',
            auth: false,
            method: 'POST',
            // desc: '修改地址',
        },
        list:{
            url: 'ship/address/list',
            auth: false,
            method: 'GET',
            // desc: '获取地址',
        },
    },
    /** 评价 ↓ **/
    eval: {
        add: {
            url: 'eval/create',
            auth: false,
            method: 'POST',
            // desc: '发布评价',
        },
        page: {
            url: 'eval/page',
            auth: false,
            method: 'GET',
            // desc: '评价列表',
        },
    },
    /** 常见问题 ↓ **/
    program: {
        list: {
            url: 'program/list',
            auth: false,
            method: 'GET',
            // desc: '常见问题',
        }
    },
    /** 全民营销 ↓ **/
    market: {
        bind: {
            url: 'market/bind',
            auth: false,
            method: 'POST',
            // desc: '全民营销',
        }
    }
}